package edu.chl.jadetalk.db;

import edu.chl.jadetalk.core.User;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author jesper
 */
@Local
public interface IUserFacade {
    
    void create(User user);
    
    void edit(User user);
    
    void remove(User user);
    
    User find(Object id);
    
    User findByName(String name);
    
    List<User> findAll();
    
    List<User> findByNamePattern(String namepattern);
    
    int count();
    
}


//package edu.chl.hajo.ejb.persistency;
//
//import edu.chl.hajo.ejb.core.Manufacturer;
//import java.util.List;
//import javax.ejb.Local;
//import javax.ejb.Remote;
//
///**
// * Local interface to database subsystem
// * @author hajo
// */
//@Local
////@Remote
//public interface IManufacturerFacade {
//
//    void create(Manufacturer manufacturer);
//
//    void edit(Manufacturer manufacturer);
//
//    void remove(Manufacturer manufacturer);
//
//    Manufacturer find(Object id);
//
//    List<Manufacturer> findAll();
//
//    List<Manufacturer> findRange(int[] range);
//
//    int count();
//
//}
